<template>
	<view class="my-box">
		<my-login v-if="token"></my-login>
		<my-userinfo v-else></my-userinfo>
	</view>
</template>

<script>
	import badgeMix from '@/mixins/tabbar-badge.js'
	import { mapState } from 'vuex'
	export default {
		mixins: [badgeMix],
		data() {
			return {
				
			};
		},
		computed: {
			...mapState('m_user', ['token'])
		}
	}
</script>

<style lang="scss">
page, .my-box {
	height: 100%; // 因为my-userinfo组件高度撑不满屏幕，所以在父级也设置height
}
</style>
